<?php
session_start();
include("func.php");
include("sqlin.php");
define("MY_SQL_SERVER","127.0.0.1");
define("MY_SQL_USER",'root');
define("MY_SQL_PASS",'43253277');
define("MY_SQL_DB",'amy');
//mysqlconnection
    $conn=mysql_connect(MY_SQL_SERVER,MY_SQL_USER,MY_SQL_PASS);
    if(!$conn){
        $_SESSION["error-message"]="数据库连接失败";
        header("Location:error.php");
        exit();
    }
    mysql_select_db(MY_SQL_DB);
?>
